'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.users.index);
  router.get('/list',controller.users.showList);
  router.get('/users/:id', controller.users.delUser);
  router.post('/users',controller.users.saveUser);
  router.post('/login',controller.users.login);
};
